package com.kakame.codenews.base.constant;

public class SystemConstant {
    //********************session*************************//
    /**
     * session中验证码键值
     */
    public static final String SESSION_KEY_OF_CAPTCHA = "captcha"; 
    /**
     * session中用户信息键值
     */
    public static final String SESSION_KEY_OF_USER = "code_news_user"; 
    /**
     * websocket中存放的用户ID
     */
    public static final String WEBSOCKET_USERID = "websocket_user_id";
    
    //********************字符串*************************//
    /**
     * 空字符串
     */
    public static final String EMPTY_STRING = "";
    
    //********************数据库*************************//
    
    /**
     * 查询表中全部字段的标识
     */
    public static final String SINGLE_TABLE_QUERY_ALL_COLUMN = " _0.0AllColumnQAQ_ ";
    
    /**
     * 根据传入实体类，拼装where条件
     */
    public static final String SINGLE_TABLE_QUERY_WHERE_CONDITION = " _0.0WhereConditionQAQ_ ";
    
    
    /**
     * t_common_user表主键标识
     */
    public static final String T_COMMON_USER = "COMMON_USER";
    /**
     * t_common_article表主键标识
     */
    public static final String T_COMMON_ARTICLE = "COMMON_ARTICLE";
    /**
     * t_nexus_comment_comment表主键标识
     */
    public static final String T_NEXUS_COMMENT_COMMENT = "NEXUS_COMMENT_COMMENT";
    /**
     * t_nexus_article_comment表主键标识
     */
    public static final String T_NEXUS_ARTICLE_COMMENT = "NEXUS_ARTICLE_COMMENT";
    /**
     * t_nexus_user_message表主键标识
     */
    public static final String T_NEXUS_USER_MESSAGE = "NEXUS_USER_MESSAGE";

    //********************操作状态*************************//
    
    public static final String SUCCESS = "SUCCESS";
    public static final String FAILED = "FAILED";
    public static final String ERROR = "ERROR";
    
    //*********************其他***************************//
    
    /**
     * 默认分页大小
     */
    public static final Integer DEFAULT_PAGE_SIZE = 10;
    
    /**
     * 数据状态 - 初始数据
     */
    public static final String DATA_STATUS_I = "I";
    
    /**
     * 数据状态 - 已提交
     */
    public static final String DATA_STATUS_S = "S";
    
    /**
     * 数据状态 - 审核通过
     */
    public static final String DATA_STATUS_C = "C";
    
    /**
     * 数据状态 - 已删除
     */
    public static final String DATA_STATUS_D = "D";
    
    /**
     * 消息来源
     */
    public static final String MESSAGE_SOURCE_ARTICLE_COMMENT = "article_comment";
}
